home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / minix / up1510b.tgz / up1510b / include / pwd.h < prev    next >
C/C++ Source or Header  |  1990-07-24  |  855b  |  31 lines

  1. /* The <pwd.h> header defines the items in the password file. */
  2.  
  3. #ifndef _PWD_H
  4. #define _PWD_H
  5.  
  6. struct passwd {
  7.   char *pw_name;        /* login name */
  8.   uid_t pw_uid;            /* uid corresponding to the name */
  9.   gid_t pw_gid;            /* gid corresponding to the name */
  10.   char *pw_dir;            /* user's home directory */
  11.   char *pw_shell;        /* name of the user's shell */
  12.  
  13.   /* The following members are not defined by POSIX. */
  14.   char *pw_passwd;        /* password information */
  15.   char *pw_gecos;        /* just in case you have a GE 645 around */
  16. };
  17.  
  18.  
  19. /* Function Prototypes. */
  20. #ifndef _ANSI_H
  21. #include <ansi.h>
  22. #endif
  23.  
  24. _PROTOTYPE( void endpwent, (void)                    );
  25. _PROTOTYPE( struct passwd *getpwnam, (char *_name)            );
  26. _PROTOTYPE( struct passwd *getpwuid, (int _uid)                );
  27. _PROTOTYPE( struct passwd *getpwent, (void)                );
  28. _PROTOTYPE( int setpwent, (void)                    );
  29.  
  30. #endif /* _PWD_H */
  31.